/**
 * @projectName study-note
 * @package Flyweight
 * @className Flyweight.ConcreteWebsite
 */
package Flyweight;

/**
 * ConcreteWebsite
 * @description 具体网站
 * @author answer_wx
 * @date 2022/7/6 14:51
 * @version 1.0
 */
public class ConcreteWebsite extends AbstractWebsite {

    public ConcreteWebsite(String name) {
        super(name);
    }

    @Override
    public void setUser(User user) {
        System.out.println("网站分类：" + name + "，用户：" + user.getName());
    }
}